package com.xnyzc.lhy.order.entity.sys;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * 系统日历表
 *
 * @author cuixiaojian
 * @since 2019-10-31
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "OaSysCalendar对象", description = "系统日历表")
public class OaSysCalendar implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "时间格式为yyyyMMdd")
    @TableId(value = "calendar_id", type = IdType.INPUT)
    private Long calendarId;

    @ApiModelProperty(value = "时间格式为yyyyMMdd")
    private String date;

    @ApiModelProperty(value = "正常工作日对应结果为 0, 法定节假日对应结果为 1, 节假日调休补班对应的结果为 2，休息日对应结果为 3")
    private Integer workingDay;


    public static final String DATE = "date";

    public static final String WORKING_DAY = "working_day";

}
